Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
The reason to use "-" instead of "_" in the HTML class and id attributes

why do people use " - " between their words instead of " _ " for example class ="btn-submit", isn't this inefficient? if you use "_" by double-clicking it will select the whole class name instead of only one side so copying and using it in CSS or javascript will be easier. double click on each of these below to see the difference

class ="btn-submit"

class ="btn_submit"

so there is any specific reason to do it that way or it's just something that is people using by bad habit.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda